home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / wb / Tripppin.lha / Tripppin / source / trip.h < prev   
C/C++ Source or Header  |  1991-01-10  |  967b  |  55 lines

  1. /* a few global definitions for the game Trippin. */
  2.  
  3.  
  4. #include <Paul.h>
  5.  
  6.         /* a bit of libraries/dos.h: */
  7. #ifndef SIGBREAKB_CTRL_C
  8. #define SIGBREAKB_CTRL_C 12L
  9. #define SIGBREAKB_CTRL_D 13L
  10. #define SIGBREAKB_CTRL_E 14L
  11. #define SIGBREAKB_CTRL_F 15L
  12. #endif
  13.  
  14.  
  15. #define HISTORY 40
  16.  
  17. typedef struct {
  18.     short top, count;
  19.     ubyte hx[HISTORY + 1], hy[HISTORY + 1], madegoal[HISTORY + 1];
  20. } history;        /* the +1 is just for safety pad */
  21.  
  22.  
  23. typedef struct _pIeCe {
  24.     short x, y, goalx, goaly;
  25.     bool machine;
  26.     ubyte reached, allowed;
  27.     struct Bob *face;
  28.     struct _pIeCe *other;
  29.     history *hist;
  30. } piece;
  31.  
  32.  
  33. #define sigdie   SIGBREAKB_CTRL_C
  34. #define sigtof   SIGBREAKB_CTRL_E
  35. #define sigthink SIGBREAKB_CTRL_F
  36.  
  37. #asm
  38. sigf_tof    equ    $00004000
  39. #endasm
  40.  
  41.  
  42. #define SQIZE 22
  43.  
  44. #define IMHITE 13
  45. #define IMWID  22
  46.  
  47. #define BLUE   0L
  48. #define WHITE  1L
  49. #define BLACK  2L
  50. #define ORANGE 3L
  51. /* ... if workbench colors have default pre-2.0 settings */
  52.  
  53.  
  54. #define MARGINWID 160
  55.